<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php");
	include("function/function.php");
	
	$classid = chkstr(trim($_REQUEST['classid']));
	if(is_numeric($classid)){
	
		$sql="select * from kboy_bigclass where id=$classid";
		$rows=mysql_query($sql);
		$nums=mysql_num_rows($rows);
		if($nums>0){
			$rs=mysql_fetch_array($rows);
			$bigclass_cn = $rs['bigclass_cn'];
		}else{
			echo erro("该信息不存在或已被删除1");
		}
	}else{
		echo erro("参数错误");
	}
	
	
	// 获取父ID串
	$replace_str = "1,2,3";
	getFatherID($classid,"");
	$getFatherID = $getFatherID . ",";
	$EXarr = explode(',',$replace_str);
	foreach($EXarr as $u){
		$rep_str = ','.$u.",";
		$getFatherID = str_replace($rep_str,'',$getFatherID);
	}
	$getFatherID = rtrim(ltrim($getFatherID,','),',');
	if(strlen($getFatherID)>0){
		$Farr = array_reverse(explode(",",$getFatherID));
		$FarrNum = $Farr[0];
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?= $bigclass_cn ?>_<?= $web_titles?></title>
<meta name="Keywords" content="<?= $bigclass_cn ?>,<?= $web_keywords ?>" />
<meta name="Description" content="<?= $web_description ?>" />
<link rel="stylesheet" type="text/css" href="css/common.css" />
<link rel="stylesheet" type="text/css" href="css/zixun.css" />
<script type="text/javascript" src="js/baidutongji.js"></script>
</head>
<body>
    <!--top-bar begin-->
	<? include("_include.top.topbar.php") ?>
    <!--top-bar end-->
    <!--header begin-->
	<? include("_include.top.navbar.php") ?>
    <!--header end-->
  <!-- 主体内容 begin-->
  <div class="l-container-wrap">
    <div class="content">
	  <? include("_include.news.banners.php") ?>
      <div class="l-main">
        <div class="l-main-nav">
          <div class="l-nav">
            <div class="l-nav-left">
              <ul>
                <li class="l-about-news <? if($classid == 6){ echo "on";}?>"><a href="news.php?classid=6" title=""><?php echo getClassName("kboy_bigclass", "bigclass_cn","id = 6") ?></a></li>
                <li class="l-about-news <? if($classid == 7 || $classid == 61 || $classid == 62 || $classid == 63){ echo "on";}?>"><a href="outdoor.php?classid=61" title=""><?php echo getClassName("kboy_bigclass", "bigclass_cn","id = 7") ?></a></li>
                <li class="l-about-news <? if($classid == 8){ echo "on";}?>"><a href="news.php?classid=8" title=""><?php echo getClassName("kboy_bigclass", "bigclass_cn","id = 8") ?></a></li>
                <li class="l-about-title <? if($classid == 9 || $classid == 65 || $classid == 66){ echo "on";}?>"><a href="zhuanti.php?classid=65" title=""><?php echo getClassName("kboy_bigclass", "bigclass_cn","id = 65") ?></a></li>
              </ul>            
            </div>
            <div class="l-nav-right">
              <ul class="ul2">
                <li>当前位置：&gt</li>
                <li><a href="index.php" title="">首页</a></li>
                <li class="name-change">&gt<?=$bigclass_cn?></li>
              </ul>
            </div>
          </div>
        </div>
        <!-- 重要专题 和 热，户，CVA这三个整体 在 l-main中切换-->
        <div class="l-news-important">
          <div class="important">
		  	<?php
					$bigclass_sql = "select * from kboy_bigclass where pid=9 order by bigclass_order asc, id asc";
					$bigclass_rows = mysql_query($bigclass_sql);
					while($bigclass_rs = mysql_fetch_array($bigclass_rows)){
			?>
            <div class="large">
              <div class="l-important-title">
                <h2>BRAND ACTIVITIES</h2>
                <p><?=$bigclass_rs['bigclass_cn']?></p>
              </div>
              <div class="l-important-main">
                <ul class="c">
			<?php	
					$news_sql = "select * from kboy_news where news_bigclass=".$bigclass_rs['id']." order by news_top desc,news_order desc, id desc";
					$news_rows = mysql_query($news_sql);
					while($news_rs = mysql_fetch_array($news_rows)){
			?>
                  <li>
                    <a href="newsview.php?newsid=<?=$news_rs['id']?>" target="_blank">
                      <div class="cell">
                        <img src="<?=$news_rs['news_pic']?>" alt="">
                        <h2><em><?=$news_rs['news_title']?></em><span><?=date('Y-m-d',strtotime($news_rs['news_addtime']))?></span></h2>
                        <p><?=$news_rs['news_text']?></p>
                      </div>
                    </a>
                  </li>
			<?php
					}
			?>
                </ul>
              </div>
            </div>
			<?php
					}
			?>
          </div>
        </div>
        <!-- 重要专题 和 热，户，CVA这三个整体 在 l-main中切换 end-->
      </div>
    </div>
  </div>
  <!-- 主体内容 end-->
	<!--foot begin-->
	<? include("_include.bottom.footbar.php") ?>
	<!--foot begin-->
	<!--左侧悬浮 begin-->
	<? include("_include.bottom.leftbar.php") ?>
	<!--左侧悬浮 end-->
	<!--右侧悬浮导航 begin-->
	<? include("_include.bottom.rightbar.php") ?>
	<!--右侧悬浮导航 end-->
<script type="text/javascript" src="js/jquery-1.10.2.min.js" ></script>
<script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
<script type="text/javascript" src="js/main.js" ></script>
<script type="text/javascript" src="js/zixun.js" ></script>
</body>
</html>